<?php echo '<?xml version="1.0" encoding="UTF-8"?>' . "\n"; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="<?php echo $direction; ?>" lang="<?php echo $language; ?>" xml:lang="<?php echo $language; ?>">
<head>
<title><?php echo $title; ?></title>
<?php if ($description) { ?>
<meta name="description" content="<?php echo $description; ?>" />
<?php } ?>
<base href="<?php echo $base; ?>" />
<?php if ($icon) { ?>
<link href="image/<?php echo $icon; ?>" rel="icon" />
<?php } ?>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/123uploadproduct.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/stylesheet2.css" />
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/menu.css" />
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="catalog/view/theme/default/stylesheet/ie6.css" />
<![endif]-->
<script type="text/javascript" src="catalog/view/javascript/jquery/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="catalog/view/javascript/jquery/thickbox/thickbox-compressed.js"></script>
<link rel="stylesheet" type="text/css" href="catalog/view/javascript/jquery/thickbox/thickbox.css" />
<script type="text/javascript" src="catalog/view/javascript/jquery/tab.js"></script>
</head>
<body>
<div id="menubox"> </div>
<div id="container">

  <div id="header"><?=$header?></div>
  	<!-- begin group top -->
	<?php if(isset($home_flg) == true && $home_flg == "on" ) { ?>
	<div class="middle">
	  <div class="tabs_group_top">
		<!--<a tab="#tab2" style="background-color: rgba(225,225,225,0.8); float:right">Sản phẩm mới</a> -->

		<!-- Mar 21 2012 Mr Duc tam thoi che phan san pham ban chay; san pham Khuyen mai -->
		<!-- Begin--->
		<!--  <a tab="#tab3">Sản phẩm bán chạy</a>  -->
	    <!--  <a tab="#tab4">Khuyến mãi</a>         -->
	  </div>
	  <div id="tab2" class="tabs_group_top_page">
			<div id="tab2_left" class="tabs_group_top_page_left">
				<div class="one_tab" style="background: #5d94d7;"> Sản phẩm mới</div>
				<?php  if(isset($sub_new_product)== true){ echo $sub_new_product;} ?>
			</div>
			<div class="tabs_group_top_page_midle">
				<?php 
					include("slide.php");
				?>
			</div>
			<div id="tab2_right" class="tabs_group_top_page_right">
				<div class="one_tab" style="background: #5d94d7;"> Sản phẩm nổi bật</div>
				<?php  if(isset($sub_bestview_product)== true){ echo $sub_bestview_product;} ?>
			</div>
	  </div>
	  <!--Begin bo San pham ban chay/San pham moi
	  <div id="tab3" class="tabs_group_top_page">
	  		<div id="tab2_right" class="tabs_group_top_page_left">
				<?php if(isset($sub_best_sell) == true){echo $sub_best_sell;} ?>
			</div>
			<div id="tab2_left" class="tabs_group_top_page_right">
				<img width="365px" height="238px" src="http://99xu.vn/image/logo/logo-new.jpg" ></img>
			</div>
	  </div>


	  <div id="tab4" class="tabs_group_top_page">
	  		<div id="tab2_right" class="tabs_group_top_page_left">
				<?php if(isset($sub_dis_count) == true){echo $sub_dis_count;} ?>
			</div>
			<div id="tab2_left" class="tabs_group_top_page_right">
				<img width="365px" height="238px" src="http://99xu.vn/image/logo/logo-new.jpg" ></img>
			</div>
	  </div>
	  End   Bo san pham ban chay/san pham moi-->

	</div>
	<?php } ?>
	<!-- end group top -->
 <div class="fixed_left_home">
	<div id="column_left">
		<?php foreach ($modules as $module) {?>
		<?php if ($module['position'] == 'left') { ?>
		<?php echo ${$module['code']}; ?>
		<?php } ?>
		<?php } ?>
	</div>
	<div class="tabs_group_logo_page_right">
		<div class="one_tab" style="background: #5d94d7;"> Nhãn hiệu</div>
		<?php include("brands.php");?>
	</div>
	<div class="tabs_group_logo_page_right_new">
		<div class="one_tab" style="background: #5d94d7;"> Hướng dẫn</div>
		<?php 
			include("guide.php");
		?>
		
	</div>
	<div class="tabs_group_logo_page_right_new">
		<div class="one_tab" style="background: #5d94d7;"> Tin mới</div>
		<?php 
			include("news.php");
		?>
	</div>
   <div class="tabs_group_content_right">
		<div class="one_tab" style="background: #5d94d7;"> Quảng Cáo</div>
		<?php 
			include("advertising.php");
		?>
   </div>
 </div>
 <div class="tabs_group_content">
	  <div id="column_right">
		<?php foreach ($modules as $module) {?>
		<?php if ($module['position'] == 'right') { ?>
		<?php echo ${$module['code']}; ?>
		<?php } ?>
		<?php } ?>
	  </div>
	  <div id="content_home">
		<?php echo $content_home; ?>
	  </div>
  </div>
	<!-- end group top -->
  
</div>
<div id="footer"><?php echo $footer; ?></div>
</body>
</html>